package com.weixing.mall.provider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.weixing.mall.provider.model.domain.GoodsPartition;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 商品模块-商品分区关联表 Mapper 接口
 * </p>
 *
 * @author Small
 * @since 2019-11-20
 */
public interface GoodsPartitionMapper extends BaseMapper<GoodsPartition> {
    List<GoodsPartition> selectByGoodsId(Long id);

    void update(ArrayList<GoodsPartition> list);

    void deleteAllByGoods(ArrayList<GoodsPartition> list);

    void deleteByGoodsId(Long goodsId);
}